//
//  MCGetSubDaywagesNewModel.h
//  TLYL
//
//  Created by MC on 2018/1/9.
//  Copyright © 2018年 TLYL01. All rights reserved.
//

#import <Foundation/Foundation.h>
//查看下级的日结列表 （新制度）
@interface MCGetSubDaywagesNewModel : NSObject

@property(nonatomic,strong) void(^callBackSuccessBlock)(id manager);
@property(nonatomic,strong) void(^callBackFailedBlock)(id manager,NSString *errorCode);
- (void)refreashDataAndShow;

- (instancetype)initWithDic:(NSDictionary *)dic;


@end
//subUserName（旧：UserName）    是    String    搜索用户名时传搜索值，否则传空串
//DayWagesState    是    Int    查询类型（-1：全部，1：已签约，0：未签约）
//DwTypeID    是    Int    日结类型（从get_system_type获取）
//CurrentPageIndex    是    Int    当前页下标（第一页为1，后续页码依次加1）
//CurrentPageSize    是    Int    请求条目数

@interface MCGetSubDaywagesNewDataModel : NSObject

@property(nonatomic,strong) NSString * DataCount;
@property(nonatomic,strong) NSString * PageCount;
@property(nonatomic,assign) BOOL isAllowSign;
@property(nonatomic,strong) NSArray * ContractList;
@property(nonatomic,strong) NSString * MaxProportion;

@end

@interface MCGetSubDaywagesNewDataContractListModel : NSObject


@property(nonatomic,strong) NSString * DayWageStandard;
@property(nonatomic,strong) NSString * UserName;
@property(nonatomic,strong) NSString * UserID;
@property(nonatomic,strong) NSString * Rebate;
@property(nonatomic,strong) NSString * State;
@property(nonatomic,strong) NSString * DayWagesProportion;
@property(nonatomic,strong) NSString * DwTypeID;


@property(nonatomic,strong) NSString * MyProportion;
@property(nonatomic,strong) NSString * MyDwStandard;
@property(nonatomic,strong) NSString * MyRuleId;
@property(nonatomic,strong) NSString * MyDwTypeId;


@property(nonatomic,strong) NSString * ID;//": 4,
@property(nonatomic,strong) NSString * DaySales;//": 4,": 50000,
@property(nonatomic,strong) NSString * ActiveNumber;//": 4,": 200

//"UserID": 16521,
//"UserName": "becky",
//"MyProportion": 0.003,
//"MyDwStandard": "每天【0.3%】的日结",
//"MyRuleId": 6,
//"MyDwTypeId": 4

@end



//备注：
//1、关于 MaxProportion 的说明：
//
//当 MaxProportion 等于 0 时，给下级签订新的日结契约，选择框最小值应大于下级已签约的比例，小于等于当前登录用户的比例。
//当 MaxProportion 不等于 0 时，给下级签订新的日结契约，选择框最小值应大于下级已签约的比例，小于等于当前登录用户的比例与 MaxProportion 这二者的最小值。









